﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Observer_C_Shaper_
{
    class Program
    {
        static void Main(string[] args)
        {
            WeatherData provider = new WeatherData();
            CurrentCondition observer = new CurrentCondition();
            observer.Subscribe(provider);

            provider.UpdateData(new Data(80,70,30.4f));
            observer.Unsubscribe();
            provider.UpdateData(new Data(10,20,30.5f));
            observer.Subscribe(provider);
            provider.UpdateData(new Data(20,30,40.6f));
            Console.ReadLine();
        }
    }
}
